import Vue from 'vue'
import App from './App'
import store from './store/index.js'

Vue.config.productionTip = false

// 引入uview-ui
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

//调用setConfig方法,需要在Vue.use(uView)之后执行
// uni.$u.config.unit = 'rpx'// 修改默认单位为rpx
// uni.$u.props.radio.size = 15//修改radio组件的size参数的默认值


//api注册
import api from '@/request/index.js'
Vue.prototype.$api = api


//img注册
import img from '@/static/images/index.js'
Vue.prototype.$img = img;


App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
